import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yp/config/config.dart';

import '../../../helper.dart';
import 'logic.dart';
import 'state.dart';

class ModifyPhonseSuccessPage extends StatelessWidget {
  final logic = Get.put(ModifyPhoneSuccessLogic());
  final ModifyPhonseSuccessState state =
      Get.find<ModifyPhoneSuccessLogic>().state;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Config.mainColor,
        title: Text(
          "账号安全",
          style: TextStyle(
            color: Colors.white,
            fontSize: setWidth(34),
          ),
        ),
        centerTitle: true,
        elevation: 0,
      ),
      body: Padding(
          padding: EdgeInsets.symmetric(
              horizontal: setWidth(80), vertical: setWidth(40)),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              SizedBox(
                height: setWidth(50),
              ),
              Row(
                children: [
                  Icon(
                    Icons.check_circle,
                    size: setWidth(50),
                    color: Config.mainColor,
                  ),
                  SizedBox(
                    width: setWidth(20),
                  ),
                  Text(
                    '更换成功',
                    style: TextStyle(
                        color: Color(0xff222222), fontSize: setWidth(30)),
                  ),
                ],
              ),
              SizedBox(
                height: 10,
              ),
              Text(
                '新手机号为${state.phone}',
                style:
                    TextStyle(color: Color(0xff888888), fontSize: setWidth(26)),
              ),
            ],
          )),
    );
  }
}
